public class testBuilder {
    public static void main(String[] args) {
        HouseBuilder commHB = new CommHouserBuilder();
        Director director = new Director(commHB);
        House chouse = director.directorBuildHouse();
        System.out.println(chouse);
        System.out.println("-----------------------------------------------------");
        //建造高级房子
        director.setHouseBuilder(new HighHouseBuilder());
        House hhouse = director.directorBuildHouse();
        System.out.println(hhouse);

    }
}
